<?php
class Mod_slideshow extends CI_Controller{
    private $tb_slideshow = 'slideshow';
    function  __construct(){
        parent::__construct();        
        //$this->load->model('mod_timkiem/mmod_timkiem');
    }
    public function index(){ // id luu torng session      
            $slideshow = $this->common_model->getdata('slideshow',array('publish'=>1,'position'=>0),'',array('id','random'));
            return $this->load->view('mod_slideshow/vmod_slideshow',array('slideshow'=>$slideshow));   
    }
    public function getAds(){
        $objectAds = $this->common_model->getdata('quangcao',array('publish'=>1,'position'=>2),'',array('id','ASC'));
        return $this->load->view('mod_slideshow/viewads.php',array('objectAds'=>$objectAds));
    }    
}